package com.exercise.activemq.usemq.topic;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * 2019/12/13-10:22
 **/
@Component
public class ConsumerTopic2 {
    @JmsListener(destination = "springboot.topic")
    public void receive(String text) {
    System.out.println(this.getClass().getSimpleName() +" 接受消息"+text);
    }
}
